<?php

class Author extends DataObject {

   static $db = array(
      'ForeName' => 'Text',
      'SurName' => 'Text'
   );
   
   static $has_many = array(
      'Media' => 'Medium'
   );
   
   public function Name() {
      $result = $this->ForeName . ' ' . $this->SurName;
      return $result;
   }
}

?>